﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="FluentFTP.View.SettingsView"
        Title="Application Settings" Width="480" Height="238" WindowStyle="ToolWindow" ResizeMode="NoResize">
    <Grid>
    	<Grid.RowDefinitions>
    		<RowDefinition Height="40"/>
    		<RowDefinition Height="40"/>
    		<RowDefinition Height="40"/>
			<RowDefinition Height="40"/>
			<RowDefinition Height="30"/>
    	</Grid.RowDefinitions>
    	<Grid.ColumnDefinitions>
    		<ColumnDefinition Width="120"/>
    		<ColumnDefinition Width="*"/>
    	</Grid.ColumnDefinitions>
    	<TextBlock HorizontalAlignment="Right" TextWrapping="Wrap" Text="Default Username:" VerticalAlignment="Center" Margin="0,0,8,0"/>
    	<TextBlock HorizontalAlignment="Right" TextWrapping="Wrap" Text="Default Password:" Grid.Row="1" d:LayoutOverrides="Height" VerticalAlignment="Center" Margin="0,0,8,0"/>
    	<TextBox Grid.Column="1" TextWrapping="Wrap" Margin="8,0" VerticalAlignment="Center" Text="{Binding DefaultUserName}"/>
    	<TextBox Grid.Column="1" TextWrapping="Wrap" Margin="8,0" Grid.Row="1" VerticalAlignment="Center" Text="{Binding DefaultPassword}"/>
    	<CheckBox Content="Always Use Default Credentials" HorizontalAlignment="Left" VerticalAlignment="Top" Grid.Column="1" Margin="8,8,0,0" Grid.Row="2" IsEnabled="False"/>
    	<StackPanel Grid.Row="4" Orientation="Horizontal" VerticalAlignment="Bottom" HorizontalAlignment="Right" Grid.Column="1">
    		<Button x:Name="CancelButton" Content="Cancel" Margin="0,0,8,0" IsCancel="True" Click="CancelButton_Click" />
            <Button x:Name="SaveButton" Content="Save" Margin="0,0,8,0" IsDefault="True" Command="{Binding Save}" Click="SaveButton_Click" />
    	</StackPanel>
        <TextBlock HorizontalAlignment="Right" TextWrapping="Wrap" Text="Default Save Path:" Grid.Row="3" Margin="0,0,8,0" VerticalAlignment="Center" />
    	<Grid Margin="8,0" Grid.Row="3" Grid.Column="1" HorizontalAlignment="Stretch">
    		<Grid.ColumnDefinitions>
    			<ColumnDefinition Width="*" />
				<ColumnDefinition Width="Auto" /> 		
			</Grid.ColumnDefinitions>
            <TextBox TextWrapping="Wrap"  VerticalAlignment="Center" HorizontalAlignment="Stretch" Text="{Binding DefaultSavePath}"/>
			  <Button Content="..." VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Column="1" Margin="8,0,0,0" Padding="4,1" Command="{Binding SelectDefaultSavePath}" />
		</Grid>
		
        
    </Grid>
</Window>
